class LoginFrame {
  String? uid;
  String? sid;
  String? appId;
  Device? device;

  LoginFrame({this.uid, this.sid, this.appId, this.device});

  LoginFrame.fromJson(Map<String, dynamic> json) {
    uid = json['uid'];
    sid = json['sid'];
    appId = json['appId'];
    device =
        json['device'] != null ? new Device.fromJson(json['device']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['uid'] = this.uid;
    data['sid'] = this.sid;
    data['appId'] = this.appId;
    if (this.device != null) {
      data['device'] = this.device!.toJson();
    }
    return data;
  }
}

class Device {
  String? deviceId;

  Device({this.deviceId});

  Device.fromJson(Map<String, dynamic> json) {
    deviceId = json['deviceId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deviceId'] = this.deviceId;
    return data;
  }
}
